package com.cg.controller;
import com.cg.entity.Dictionarylist;
import com.cg.result.R;
import com.cg.service.DictionarylistService;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lhy
 * @since 2024-12-26
 */
@RestController
public class DictionarylistController {
    @Resource
    private DictionarylistService dictionarylistService;
    @GetMapping("/searchDictionarylist")
    @Schema(description = "获取数据字典详情")
    public R<?> searchall()
    {
        List<Dictionarylist> list = dictionarylistService.list ();
        return R.Success (list);
    }
}
